package com.neusoft.service;

import com.neusoft.po.BusinessAdmin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusinessAdminService {
    List<BusinessAdmin> listBusiness(String businessName,
                                     String businessAddress);
    int saveBusiness(BusinessAdmin business);
    int removeBusiness(int businessId);
    BusinessAdmin getBusinessByIdByPass(Integer businessId, String password);
    BusinessAdmin getBusinessById(Integer businessId);
    int getById(String businessId) throws Exception;
    int updateBusiness(Integer businessId,String password,String businessName,String businessAddress,String businessExplain,Double starPrice,Double deliveryPrice,String businessImg);
    int updateBusinessByPassword(Integer businessId, String password);
}